

package com.kimo.shop.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kimo.shop.bean.model.FlowLog;
import com.kimo.shop.bean.param.ProdAnalysisSurveyParam;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 用户流量记录
 *
 * @author kimo-taozhouchuan
 * @date 2020-07-13 13:18:33
 */
public interface FlowLogMapper extends BaseMapper<FlowLog> {

    Date getMinCreateTime();

    List<FlowLog> getFlowLogByDate(@Param("startTime") Date startTime, @Param("endTime") Date endTime);

    void deleteAllByDate(@Param("startTime") Date startTime, @Param("endTime") Date endTime);

    Integer countVisitProdInfoNum(@Param("param") ProdAnalysisSurveyParam param);

    Integer countProdExposeNum(@Param("param") ProdAnalysisSurveyParam param);

    Integer countVisitProdNum(@Param("param") ProdAnalysisSurveyParam param);

    Integer countProdVisitorNum(@Param("param") ProdAnalysisSurveyParam param);

    Integer countAddCartProdNum(@Param("param") ProdAnalysisSurveyParam param);

    Integer getFlowLogCountByDate(@Param("startTime") Date startTime);

    Integer countShareVisit(@Param("param") ProdAnalysisSurveyParam param);

    Integer countAllVisitor(@Param("date") Date date, @Param("startTime") Date startTime, @Param("endTime") Date endTime);

    Integer flowLogMapper(@Param("startTime") Date startTime, @Param("endTime") Date endTime);

    Integer countAddCartUserNum(@Param("startTime") Date startTime, @Param("endTime") Date endTime);
}
